package com.evolve.autotest;

import java.util.Collection;

import com.evolve.autotest.actions.IAction;


public class Statement {

	private VerificationType verification;
	private IAction action;

	public Statement() {
		verification = VerificationType.HALT_ON_FAILURE;
	}
	
	public void setAction(IAction action) {
		this.action = action;
	}
	
	public void setVerification(VerificationType verification) {
		this.verification = verification;
	}
	
	public VerificationType getVerification() {
		return verification;
	}

	public ReturnValue execute() {
		return action.execute();
	}

	public Collection<? extends String> getTroubles() {
		return action.getTroubles();
	}
}
